package cn.com.sixboy.entity;

import java.io.Serializable;
import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.NamedQueries;
import javax.persistence.NamedQuery;
import javax.persistence.Table;
import javax.persistence.TableGenerator;

/**
 * @author Sam.Zheng <zcl1866@sina.com>
 * @date 2013-5-4 14:07:08
 * @version <v0.1>
 * @copyright SixBoy
 */
@Entity
@Table(name = "t_shanghu")
@NamedQueries({ @NamedQuery(name = "findAllShanghus", query = "select s from Shanghu s order by  s.id"),
        @NamedQuery(name = "findAllShanghusByName", query = "select s from Shanghu s where s.name like :name order by s.id") })
public class Shanghu implements Serializable {


	@Id
	@TableGenerator(name = "shanghu", table = "sys_generator", pkColumnName = "key_name", pkColumnValue = "SHANGHU_ID", valueColumnName = "key_value", initialValue = 1, allocationSize = 1)
	@GeneratedValue(strategy = GenerationType.TABLE, generator = "shanghu")
	private Integer id;

	/**
	 * 商家（餐厅饭店）名称
	 */
	@Column(name = "name", length = 20)
	private String name;

	/**
	 * 商家（餐厅饭店）简介
	 */
	@Column(name = "descprition", length = 500)
	private String descprition;

	
	/**
	 * 商家图片展示（限<=5张） <br>
	 * 数据库只保存图片的路径
	 */
	@Column(name = "logos", length = 500)
	private String logos;
	
	/**
	 * 菜系
	 */
	@Column(name = "caixi", length = 50)
	private String caixi;

	/**
	 * 商家对自己的菜的分类<br>
	 * 当有多个分类时用英文逗号“,”隔开
	 */
	@Column(name = "caiClasses", length = 200)
	private String caiClasses;

	/**
	 * 营业时间<br>
	 */
	@Column(name = "businessTime", length = 200)
	private String businessTime;

	/**
	 * 地址<br>
	 */
	@Column(name = "address", length = 400)
	private String address;

	/**
	 * 地址-地铁线路<br>
	 */
	@Column(name = "addressSubway", length = 400)
	private String addressSubway;

	/**
	 * 地址-公交线路<br>
	 * 公交
	 */
	@Column(name = "addressBus", length = 400)
	private String addressBus;

	
    public Integer getId() {
    	return id;
    }

	
    public void setId(Integer id) {
    	this.id = id;
    }

	
    public String getName() {
    	return name;
    }

	
    public void setName(String name) {
    	this.name = name;
    }


	
    public String getLogos() {
    	return logos;
    }

	
    public void setLogos(String logos) {
    	this.logos = logos;
    }

	
    public String getCaixi() {
    	return caixi;
    }

	
    public void setCaixi(String caixi) {
    	this.caixi = caixi;
    }

	
    public String getCaiClasses() {
    	return caiClasses;
    }

	
    public void setCaiClasses(String caiClasses) {
    	this.caiClasses = caiClasses;
    }

	
    public String getBusinessTime() {
    	return businessTime;
    }

	
    public void setBusinessTime(String businessTime) {
    	this.businessTime = businessTime;
    }

	
    public String getAddress() {
    	return address;
    }

	
    public void setAddress(String address) {
    	this.address = address;
    }

	
    public String getAddressSubway() {
    	return addressSubway;
    }

	
    public void setAddressSubway(String addressSubway) {
    	this.addressSubway = addressSubway;
    }

    public String getDescprition() {
    	return descprition;
    }


	
    public void setDescprition(String descprition) {
    	this.descprition = descprition;
    }

    public String getAddressBus() {
    	return addressBus;
    }

	
    public void setAddressBus(String addressBus) {
    	this.addressBus = addressBus;
    }

}
